<ul class="nav nav-secondary">
	<li ><a href="#/classes">班级管理</a></li>
	<li class="active" ><a href="#/school">学校管理</a></li>
</ul>

<form class="form with-padding" role="form" method="post">
		
<div class="row">
	<div class="form-group col-md-4" >
	    <label class="control-label">学校名称：</label>
		<input ng-model="add.name" type="text" class="form-control" placeholder="请填写">
	</div>
	<div class="form-group col-md-2">
	    <label class="control-label">联系人：</label>
		<input ng-model="add.link_name" type="text" class="form-control" placeholder="请填写">   
	</div>
	<div class="form-group col-md-2">
	    <label class="control-label">联系方式：</label>	    
		<input ng-model="add.link_tel" type="text" class="form-control" placeholder="请填写">    
	</div>
</div>	
<div class="row">
	<div class="form-group col-md-8">	
	    <label class=" control-label">学校地址：</label>
		<textarea  ng-model="add.address" type="text" class="form-control" placeholder="请填写"></textarea>
	</div>
</div>
<button ng-show="!isEdit"  ng-click="create(add)" class="btn btn-primary" type="button">新建</button>
<button ng-show="isEdit" ng-click="edit_submit(add)" class="btn btn-primary" type="button">更新</button>
<button ng-show="isEdit" ng-click="edit_cancel(add)" class="btn" type="button">取消</button>
</form>

<hr />

<table class="table">
    <thead>
	    <tr>
	    	<th>序号</th>
	    	<th>学校名称</th>
	    	<th>联系人</th>
	    	<th>联系电话</th>
	    	<th>地址</th>
	    	<th>操作</th>
	    </tr>
  	</thead>
  	<tbody>
	    <tr ng-repeat="school in schools">
	    	<td>{{$index+1}}</td>
	    	<td>{{school.name}}</td>
	    	<td>{{school.link_name}}</td>
	    	<td>{{school.link_tel}}</td>
	    	<td>{{school.address}}</td>
	    	<td>
	    		<button ng-click="delete(school)" class="icon-trash btn btn-sm text-warning"></button>
	    		<button ng-click="edit(school)" class="icon-pencil btn btn-sm text-primary"></button>
	    	</td>
	    </tr>
  	</tbody>
</table>
